package com.zhentao.api.userCoupon;

import com.zhentao.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @ClassName: UserCouponApi
 * @Author: muhaoyang1
 * @Date: 2024/12/26 21:39
 * @Comment:
 */
@FeignClient(value = "coupon-service")
public interface UserCouponApi {

    @DeleteMapping("/market/api/user/coupon/delete/user/coupon")
    /**
     * @description:删除用户优惠卷的关联关系
     * @author: muhaoyang
     * @date: 2024/12/26 21:40
     * @param: [couponIds, userId]
     * @return: com.zhentao.model.common.dtos.ResponseResult
     **/
    public ResponseResult deleteUserCoupon(@RequestParam("couponId") List<Integer> couponIds , @RequestParam("userId") Long userId);
}
